#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  set<int> a;
  for (int i = 0; i < n; i++) {
    int k;
    cin >> k;
    a.insert(k);
  }
  int x;
  cin >> x;
  int ans = a.count(x);
  if (ans != 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No";
  }
  return 0;
}